package nsoft.swing.demo;

import java.awt.event.ActionEvent;

import nsoft.swing.action.ApplicationEvent;
import nsoft.swing.annotation.AButton;
import nsoft.swing.annotation.AComponent;
import nsoft.swing.annotation.Type;
import nsoft.swing.annotation.APanel;

@APanel(name = "Test", layout = "BorderLayout", components = {
//		@SwingComponent(componentType = SwingComponentType.LABEL, name = "Test", property = "east", layoutProperties = "East", componentProperties = "Foreground:#B52737"),
		@AComponent(type = Type.LABEL, name = "Test", property = "west", layout = "West", properties = "Background:#B52737"),
		@AComponent(type = Type.LABEL, name = "Test", property = "north", layout = "North"),
		@AComponent(type = Type.LABEL, name = "Test", property = "south", layout = "South"),
//@SwingComponent(componentType=SwingComponentType.LABEL,name="Test",property="center",layoutProperties="Center"),
},
buttons = @AButton(label = "Test", controller = "DemoPanelBean", action = "buttonAction", layout = "Center", properties = "Foreground:#B22737"),
fileds="east")
public class DemoPanelBean {
	@AComponent(type = Type.LABEL, name = "Test", property = "east", layout = "East", properties = "Foreground:#CFBAFF")
	private String east;

	private String west;

	private String north;

	private String south;

	private String center;

	public String getEast() {
		return east;
	}

	public void setEast(String east) {
		this.east = east;
	}

	public String getWest() {
		return west;
	}

	public void setWest(String west) {
		this.west = west;
	}

	public String getNorth() {
		return north;
	}

	public void setNorth(String north) {
		this.north = north;
	}

	public String getSouth() {
		return south;
	}

	public void setSouth(String south) {
		this.south = south;
	}

	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}

	public void buttonAction(ApplicationEvent<ActionEvent> e) {
		System.out.println("Button test");
	}
}
